//
//  MKUIPickerViewComponentModel.h
//  MKUI
//	滚轮中的组件模型
//  Created by sushangjin on 15/6/18.
//  Copyright (c) 2015年 sushangjin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MKCollectionModel.h"
#import "MKCollectionCellModel.h"
#import "MKCollectionSectionModel.h"

NS_ASSUME_NONNULL_BEGIN
@class MKUIPickerViewModel,MKUIPickerViewCellModel;
@interface MKUIPickerViewComponentModel : MKCollectionSectionModel
@property(nonatomic,readonly,nullable) UIPickerView *pickerView;
@property(nonatomic,readonly,nullable) __kindof MKUIPickerViewModel *pickerViewModel;
@property(nonatomic,assign) CGSize cellSize;//滚动分组中每个选项的尺寸

/**
 *  查找title对应的第一个单元格所在的索引位置
 *
 *  @param title 单元格的title值
 *
 *  @return 第一个单元格的位置
 */
- (NSInteger)indexOfCellModelWithTitle:(nullable NSString *)title;
@end
NS_ASSUME_NONNULL_END
